<template>
    <el-row :gutter="24" justify="center">
        <el-col :md="18" :sm="24" :xs="24" >
            <SendBox v-if="isHidden"/>
        </el-col>
    </el-row>

    <span class="copyright">2024 © ChatCUMT-UI made by CUMT.
        <el-link href="https://github.com/666xz666/ChatCUMT-UI" target="_blank">代码仓库</el-link>
        <el-link href="javascript:void(0)" @click="goTo('/tutorial')">系统文档</el-link>
    </span>
</template>

<script>
export default {
    name: 'AppAside',
    computed: {
      isHidden() {
        return this.$router.currentRoute.value.name === 'index';
      }
    },
    methods: {
        /**
         * 跳转页面函数
         * @param path
         */
        goTo(path) {
            this.$router.push(path)
        },
    }
}
</script>

<style scoped>
.copyright, :deep(.el-link__inner) {
    font-size: 12px;
}
.el-link {
    vertical-align: inherit;
}
</style>

